import request from "../utils/request";

export function authCard(cardNo, password) {
  return request.post('/cards/authenticate', {
    username: cardNo,
    password: password
  });
}

export function getCard(cardNo) {
  return request.get('/cards/' + cardNo);
}

export function updateCard(card) {
  return request.patch('/cards', card);
}
